//
//  ITRunTimeTestViewController.m
//  InduceTool
//
//  Created by 魏延龙 on 2020/9/22.
//  Copyright © 2020 魏延龙. All rights reserved.
//

#import "ITRunTimeTestViewController.h"
#import <objc/runtime.h>

@interface ITRunTimeTestViewController ()

@end

@implementation ITRunTimeTestViewController

+(void)load {
    
    Method oriInit = class_getInstanceMethod(self, @selector(viewDidAppear:));
    Method extInit = class_getInstanceMethod(self, @selector(rt_viewDidAppear:));
    method_exchangeImplementations(oriInit, extInit);
    
    Method oriInit1 = class_getInstanceMethod(self, @selector(viewDidAppear:));
    Method extInit1 = class_getInstanceMethod(self, @selector(rt2_viewDidAppear:));
    method_exchangeImplementations(oriInit1, extInit1);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
}

-(void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    NSLog(@"viewDidAppear ");
}

-(void)rt_viewDidAppear:(BOOL)animated {
    NSLog(@"rt_viewDidAppear ");
    [self rt_viewDidAppear:animated];
}

-(void)rt2_viewDidAppear:(BOOL)animated {
    NSLog(@"rt2_viewDidAppear ");
    [self rt2_viewDidAppear:animated];
}

@end
